Dynomotion

Group: DynoMotion Message: 8076 From: eric_kato_sanders Date: 8/7/2013
Subject: KMotionCNC quirk fix
I've been customizing the application to suite my fancy and found one irritating issue. When you single step in simulation mode, you may get a message that soft limits are exceeded and will be disabled for the rest of the session. Despite the promise, the message appears at almost every step.
The CoordMotion m_DisableSoftLimits flag is then set to disable the warning messages. However, when the single step button is pressed and eventually LaunchExecution() is called, this function clears this flag.

The simple fix is to create a m_bCalledFromSingleStep variable in the CKMotionCNCDlg class. Set this value to true in the OnSingleStep90 function before the call to LaunchExecution(). In LaunchExecution(), wrap the clearing of the flag with this conditional.

if(!m_bCalledFromSingleStep)
{
Interpreter->CoordMotion->m_DisableSoftLimits = false;
}

Then clear this flag in the OnSingleStep() function after the LaunchExecution call.